package com.wang.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wang.wemedia.api.model.pojo.WmNewsMaterial;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: wangning
 * @date: 2024/1/12 11:19
 */
@Mapper
public interface WmNewsMaterialMapper extends BaseMapper<WmNewsMaterial> {

    void saveRelations(@Param("materialIds") List<Integer> materialIds, @Param("newsId") Integer newsId, @Param("type")Short type);
}
